package com.baiyan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

import java.io.Serializable;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author kingbird
 * @since 2024-06-07
 */
@TableName("t_order_ext")
public class TOrderExt extends Model<TOrderExt> {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 订单编号
     */
    @TableField("order_no")
    private String orderNo;
    /**
     * 客户编号
     */
    @TableField("customer_no")
    private String customerNo;
    /**
     * 订单状态
     */
    private Integer status;
    /**
     * 订单名称
     */
    @TableField("order_name")
    private String orderName;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 是否已被删除
     */
    private Integer deleted;


    public Long getId() {
        return id;
    }

    public TOrderExt setId(Long id) {
        this.id = id;
        return this;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public TOrderExt setOrderNo(String orderNo) {
        this.orderNo = orderNo;
        return this;
    }

    public String getCustomerNo() {
        return customerNo;
    }

    public TOrderExt setCustomerNo(String customerNo) {
        this.customerNo = customerNo;
        return this;
    }

    public Integer getStatus() {
        return status;
    }

    public TOrderExt setStatus(Integer status) {
        this.status = status;
        return this;
    }

    public String getOrderName() {
        return orderName;
    }

    public TOrderExt setOrderName(String orderName) {
        this.orderName = orderName;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public TOrderExt setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public TOrderExt setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public TOrderExt setDeleted(Integer deleted) {
        this.deleted = deleted;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TOrderExt{" +
        ", id=" + id +
        ", orderNo=" + orderNo +
        ", customerNo=" + customerNo +
        ", status=" + status +
        ", orderName=" + orderName +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", deleted=" + deleted +
        "}";
    }
}
